package com.example.liujinliang.servicebestpractice.common;

public enum DownloadTaskStat {
    TYPE_SUCCESS(0, "DOWNLOAD SUCCESS!"),
    TYPE_FAILED(1, "DOWNLOAD FAILURE!"),
    TYPE_PAUSED(2, "DOWNLOAD PAUSED!"),
    TYPE_CANCELED(3, "DOWNLOAD CANCELED!");

    /**
     * 下载状态码
     */
    int code;

    /**
     * 下载状态提示信息
     */
    String msg;

    DownloadTaskStat(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
